package com.ruoyi.common.thread;

import com.ruoyi.common.utils.RequestInfo;

public class ReqThreadLocalUtil {
    private final static ThreadLocal<RequestInfo> REQ_THREAD_LOCAL = new ThreadLocal<>();

    public static RequestInfo getReq() {
        return REQ_THREAD_LOCAL.get();
    }
    public static void setReq(RequestInfo req) {
        REQ_THREAD_LOCAL.set(req);
    }
    public static void removeReq() {
        REQ_THREAD_LOCAL.remove();
    }
}
